package com.demo.entity.po;

import java.io.Serializable;

import java.util.Date;

import com.demo.annotation.VerifyParam;
import com.fasterxml.jackson.annotation.JsonFormat;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * @Description:咨询预约表
 * @Date:2025-03-01
 * @author：author
*/
public class Appointment implements Serializable {

	/**
	 * 预约ID，主键，自增
	 */
	private Long appointmentId;

	/**
	 * 预约用户ID，外键
	 */
	@VerifyParam(required = true)
	private Long userId;

	/**
	 * 咨询师ID，外键
	 */
	private Long counselorId;

	/**
	 * 预约时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date appointmentTime;

	/**
	 * 预约状态：待确认、已确认、已完成、已取消
	 */
	private Integer status;

	/**
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;

	/**
	 * 最后更新时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date updateTime;

	private String username;

	private String usernameFuzzy;

	private Integer method;

	private String remark;


	private String email;

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Integer getMethod() {
		return method;
	}

	public void setMethod(Integer method) {
		this.method = method;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getUsernameFuzzy() {
		return usernameFuzzy;
	}

	public void setUsernameFuzzy(String usernameFuzzy) {
		this.usernameFuzzy = usernameFuzzy;
	}

	public void setAppointmentId(Long appointmentId) {
		this.appointmentId = appointmentId;
	}

	public Long getAppointmentId() {
		return this.appointmentId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getUserId() {
		return this.userId;
	}

	public void setCounselorId(Long counselorId) {
		this.counselorId = counselorId;
	}

	public Long getCounselorId() {
		return this.counselorId;
	}

	public void setAppointmentTime(Date appointmentTime) {
		this.appointmentTime = appointmentTime;
	}

	public Date getAppointmentTime() {
		return this.appointmentTime;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getStatus() {
		return this.status;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Date getUpdateTime() {
		return this.updateTime;
	}

	@Override
	public String toString() {
		return "预约ID，主键，自增:" + appointmentId + ",预约用户ID，外键:" + userId + ",咨询师ID，外键:" + counselorId + ",预约时间:" + appointmentTime + ",预约状态：待确认、已确认、已完成、已取消:" + status + ",创建时间:" + createTime + ",最后更新时间:" + updateTime + "";
	}

}